package main

import "fmt"

import "time"

// 使用Sub函数得到两个时间之间的差值

func main() {
	start := time.Now()
	time.Sleep(time.Second * 2)
	end := time.Now()
	delta := end.Sub(start)
	fmt.Printf("delta %s\n", delta)
}
